﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace StateManagement
{
    public partial class UserPage : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {


        }
        protected override void OnPreRender(EventArgs e)
        {
            HttpCookie cookie = Request.Cookies["UserName1"];
            if (cookie == null)
            {
                Page.Response.Redirect("UserCookies.aspx");
            }
        }

        protected void Button1_Click(object sender, EventArgs e)
        {

        }
    }
}